package com.example.myapplication.activity.live_activity;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.TextView;

import com.example.myapplication.R;

public class ActReceiveActivity extends AppCompatActivity {
    private TextView tvReceive;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_act_receive);
        tvReceive = findViewById(R.id.tv_receive);
        //从上一个意图传来意图中获取包裹
        Bundle bundle = getIntent().getExtras();
        String requestTime = bundle.getString("requestTime");
        String requestContent = bundle.getString("requestContent");
        tvReceive.setText(requestContent);
        Log.i("MyTAG", "收到请求:{}" + requestTime + requestContent);

    }

                             }